<template>
  <div class="resume-container">
    <DocPreview
      v-if="cp_fileUrl"
      :url="cp_fileUrl"
      :fileName="cp_fileName"
      :images="cp_images"
    />
    <van-empty description="简历不存在" v-else />
  </div>
</template>

<script setup>
import DocPreview from "@/components/DocPreview.vue";
import { useInterviewStore } from "@/store";
import { computed } from "vue";

const interviewStore = useInterviewStore();

const cp_fileUrl = computed(() => interviewStore.sharePath);
const cp_fileName = computed(() => interviewStore.fileName);
const cp_images = computed(() => interviewStore.images);
</script>

<style scoped>
.resume-container {
  height: 100vh;
  padding-top: 16px;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}
</style>
